import request from '@/utils/request'

// 查询权益兑换码列表
export function listCode(query) {
  return request({
    url: '/business/code/list',
    method: 'get',
    params: query
  })
}

// 查询权益兑换码详细
export function getCode(id) {
  return request({
    url: '/business/code/' + id,
    method: 'get'
  })
}

// 查询权益兑换码列表-分配记录
export function listCodeAssign(query) {
  return request({
    url: '/business/code/listAssign',
    method: 'get',
    params: query
  })
}